<?php
/**
 * Represents a <img> tag
 */
fily_XMLConverter::registerNamespace('image', fily_Image);
class fily_Image extends fily_ControlContainer {
    /**
     *
     */
    public function __construct() {
        parent::__construct('img');
    }

    /**
     * set the src attribute
     * @param string $value
     */
    public function setSrc($value) {
        $this->attributes->set('src', $value);
    }

    /**
     * returns the src attribute
     * @return string
     */
    public function getSrc() {
        return $this->attributes->get('src');
    }

    /**
     * sets the alt attribute
     * @param string $value
     */
    public function setAlt($value) {
        $this->attributes->set('alt', $value);
    }

    /**
     * returns the alt attribute
     * @return string
     */
    public function getAlt() {
        return $this->attributes->get('src');
    }


    /**
     * sets the title attribute
     * @param string $value
     */
    public function setTitle($value) {
        $this->attributes->set('title', $value);
    }

    /**
     * returns the title attribute
     * @return string
     */
    public function getTitle() {
        return $this->attributes->get('src');
    }



}
?>
